import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:yt_devops/components/yt_text_style.dart';
import 'package:yt_devops/styles/styles.dart';

/**
 *
 * @Description TODO
 * @Author liuer
 * @CreateTime 2024年03月26日 15:31
 */
class ElecPriceTitleWidget extends StatelessWidget {
  final String title;
  const ElecPriceTitleWidget(this.title,{super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 58,
      color: Colors.white,
      child: Column(
        children: [
          Container(
            alignment: Alignment.centerLeft,
            margin: EdgeInsets.only(left: 16.w),
            padding: EdgeInsets.only(top: 10),
            height: 50,
            child: Text(
              title,
              style: ytTextStyle(fontWeight: FontWeight.w500, fontSize: 18),
            ),
          ),
          Spacer(),
          Container(
            height: 0.5,
            margin: EdgeInsets.only(left: 16.w, right: 16.w),
            color: Colour.dividerColor,
          ),
        ],
      ),
    );
  }
}
